from datetime import datetime

def now():
    return datetime.now()

def now_str():
    return str(datetime.now())

def now_simple():
    return to_date_str(datetime.now(),'%Y-%m-%d %H:%M:%S')

def to_date_str(date_obj,format):
    return date_obj.strftime(format)

def to_date_str_simple(date_obj):
    return to_date_str(date_obj,'%Y-%m-%d %H:%M:%S')

def to_date_str__simple_from_float(date_float):
    return to_date_str_simple(datetime.fromtimestamp(date_float))#to_date_str(date_obj,'%Y-%m-%d %H:%M:%S')

def parse_str_silmple(str):
    return parse_str(str,'%Y-%m-%d %H:%M:%S')

def parse_str(str,format):
    return datetime.strptime(str,format)


print(now())
print(now_str())
print(now_simple())
print(parse_str_silmple('2019-12-25 16:08:54'))